package Model.Stances;

import Model.Visible.Planet;

public class Defenses extends Stances{
	
	private int attack_;
	
	public Defenses(Planet planet){
		super(planet);
		attack_ = 50;
		price_ = INITIAL_DEFENSES_PRICE;
	}
	
	public void updateStance(){
		if(planet_.getResources() >= this.price_){
			super.updateStance();
			this.price_ = price_+INCREMENT_DEFENCES_PRICE;
			attack_ = attack_ + ATTACK_INCREMENT;
		}
	}
	
	public void sellStance(){
		super.sellStance();
		this.price_ = price_-INCREMENT_INDUSTRY_PRICE;
		attack_ = attack_ - ATTACK_INCREMENT;
}

	public int getAttack_() {
		return attack_;
	}

	public void setAttack_(int attack_) {
		this.attack_ = attack_;
	}
	
}
